package org.gof.application
{
	import com.iMANIT.OO.ThisIs;
	import flash.display.DisplayObjectContainer;
	
	import org.gof.application.Reactor.Reactor;
	import org.gof.application.Clock.BaseClock;

	use namespace AppNS;
	public class BaseAppFacade
	{
	////// Singelton.
	//	private static var instance:BaseAppFacade;
	//	protected static var _isLocked:Boolean = true;
		
		public var mainClock:BaseClock;
	    public var readProxies:Vector.<BaseReadProxy>;
		public var rootViewPort:DisplayObjectContainer;
		public var reactor:Reactor
		
		/*
		public static function getInstance():BaseAppFacade
		{
			
			if (!instance)
			{
				_isLocked = false;
				instance = new BaseAppFacade();
			}
			return instance;
		}
*/
		
		public function BaseAppFacade()
		{
	/*		if (_isLocked)
			{
				ThisIs.aSingeltonClass();
			}
			else 
			{
				_isLocked = true;
			}
		*/
		}
		
		public function init(rootViewPort:DisplayObjectContainer):void
		{
			this.rootViewPort = rootViewPort;
			reactor = new Reactor();
				
		}
	}
}